]> dgit.raspbian.org Git - gnome-shell.git/commit
window-tracker: Fix pid based window/app association
authorSebastian Keller <sebastian-keller@gmx.de>
Mon, 8 Dec 2014 18:53:39 +0000 (19:53 +0100)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 29 Dec 2014 00:40:20 +0000 (16:40 -0800)
commit186f9b2e2c169f6625b363689e707d7f9befbc2f
treef620fe9798e85e6ba7c8eaabe2e9a76c82574adb
parent2c8e405e276100a992a55ecb8aa6cc970b39f2d6
window-tracker: Fix pid based window/app association

The lookup table used by get_app_from_window_pid contained only pids of
apps launched by gnome-shell itself, but not pids of apps running before
gnome-shell was (re-)started. Also the pids in that table might not even
be the pid of the process that is actually showing the window if wrapper
scripts are used.

Instead use shell_window_tracker_get_app_from_pid which uses the pids
from the windows themselves.

This removes the only use of launched_pid_to_app which will be removed
in the following commit.

This fixes: https://bugzilla.gnome.org/show_bug.cgi?id=736527
src/shell-window-tracker.c